<?php
if(isset($_GET['option'])){
	if(isset($_POST['submit'], $_POST['idNewsDel'])){
		switch($_GET['option']){
			case 'check':
				foreach($_POST['idNewsDel'] as $idNews){
					NewsModel::delNews($idNews);
				}
			break;
		}
	}
}
require_once MODEL_DIR.'/NewsModel.php';
$oNewsInstance = new NewsModel();
$aiassNewsList = $oNewsInstance->getNews();
require_once VIEW_DIR.'/formNewsDel.php';
